package com.xizi.forum.exception;

import com.xizi.forum.common.ResultCode;

public class ApplicationException extends RuntimeException{
    ResultCode resultCode;

    public ApplicationException() {
        super();
    }

    public ApplicationException(ResultCode resultCode) {
        super(resultCode.getMessage());
        this.resultCode = resultCode;
    }

    public ApplicationException(String message) {
        super(message);
    }

    public ResultCode getResultCode() {
        return resultCode;
    }
}
